Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/more filter types #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
johguentner merged 4 commits into dev from feature/more-filter-types
Sep 25, 2021
Merged

Feature/more filter types #37

johguentner merged 4 commits into dev from feature/more-filter-types
Sep 25, 2021

Conversation

@mechelon
Copy link
Member

@mechelon mechelon commented Sep 21, 2021

No description provided.

...Filter into new namespace & adding valid filter operators
Copy link
Member Author

@johguentner What do you think about this approach for filters in general?

Usage:
$textFilter = Filter::textFilter("Name", "equals", "Ada Lovelace");

Copy link
Member

@johguentner What do you think about this approach for filters in general?

Usage:
$textFilter = Filter::textFilter("Name", "equals", "Ada Lovelace");

Love it !
What do you think about adding short textFilters as well, like "=" or ">=", or do you think, this would be confusing, since it's the same functionality ? 🤔
If I had to choose one, I'd actually stick with words like "equals", since it's more Notion-like 👌

Copy link
Member Author

Hmm, I would stick with the Notion terms (so equals instead of =). Maybe we can think about shorthands ::numberGreaterThan($value, $prop) or something later 🤔

I also added constants for the values in the Operators class for typo-safety. We should move them to an enum as soon as PHP 8.1 is widely distributed :)

johguentner reacted with thumbs up emoji

@mechelon mechelon changed the base branch from main to dev September 25, 2021 12:57
@mechelon mechelon marked this pull request as ready for review September 25, 2021 19:57
@johguentner johguentner merged commit ae0d8a9 into dev Sep 25, 2021
@mechelon mechelon deleted the feature/more-filter-types branch June 17, 2022 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@johguentner johguentner johguentner approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /